import config from '@/config'

export default {
  backgroundColor: 'transparent',
  animation: false,
  bmap: {
    zoom: 13,
    roam: true,
    mapStyle: {
      styleJson: config.mapStyleJson
    }
  },
  tooltip: {
    trigger: 'item',
    formatter: function(val) {
      return '<div><h5>表具ID</h5>' + val.name + '</div>'
    }
  },
  series: [
    {
      name: '表具ID',
      type: 'scatter',
      coordinateSystem: 'bmap',
      animation: false,
      showEffectOn: 'render',
      rippleEffect: {
        brushType: 'stroke'
      },
      hoverAnimation: true,
      label: {
        formatter: '{b}',
        position: 'right',
        show: false
      },
      itemStyle: {
        color: '#e5e510'
      },
      zlevel: 1
    }
  ]
}
